<!--
 * @Author: albert shyttsyj@126.com
 * @Date: 2024-06-19 00:32:14
 * @LastEditors: albert shyttsyj@126.com
 * @LastEditTime: 2024-06-27 20:30:37
 * @FilePath: /sales-assistant-admin/src/views/initConfig.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->

<script>
export default {
  components: {},
  props: {},
  data() {
    return {}
  },
  watch: {},
  computed: {},

  mounted() {},
  methods: {
    pay() {
      wx.qy.openAppPurchase({
        success: function (res) {
          // 调用成功
          console.log(res)
          this.$message.success(res)
        },
        fail: function (err) {
          // 调用失败
          console.log(err)
          this.$message.warning(err)
        }
      })
    }
  }
}
</script>

<template>
  <div>
    <h1>初始配置</h1>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>初始配置</span>
        <el-button style="float: right; padding: 3px 0" type="text" @click="pay"
          >进入应用购买页面</el-button
        >
      </div>
      <div v-for="o in 4" :key="o" class="text item">
        {{ '列表内容 ' + o }}
      </div>
    </el-card>
  </div>
</template>
